import CsgButton from './csgButton/index.vue';
import CsgSearch from './csgSearch/index.vue';
import CsgSelect from './csgSelect/index.vue';
import CsgSwitch from './csgSwitch/index.vue';
import CsgDate from './csgDate/index.vue';
import CsgTable from "./csgTable/index.vue"
import CsgPagination from "./pagination/index.vue"
import CsgDialog from "./csgDialog/index.vue"

// 按需导出
export { CsgButton, CsgSearch };

const components = [
  { name: 'CsgButton', component: CsgButton },
  { name: 'CsgSearch', component: CsgSearch },
  { name: 'CsgSelect', component: CsgSelect },
  { name: 'CsgSwitch', component: CsgSwitch },
  { name: 'CsgDate', component: CsgDate },
  { name: 'CsgTable', component: CsgTable },
  { name: 'CsgPagination', component: CsgPagination },
  {name:"CsgDialog",component:CsgDialog}
];

const install = function (app) {
  components.forEach(({ name, component }) => {
    app.component(name, component);
  });
};

export default { install };
